#include <iostream>
#include <string>
using namespace std;

char cac(string a){
	if(a.find("%") >= 0)
		return '%';
	else if(a.find("/") >= 0)
		return '/'
	else if(a.find(".") >= 0)
		return '.'
	else
		return 'n'
}

int main(){
	char type;
	string s,ans1="",ans2="",ans3="";
	cin>>s;
	type = cac(s);
//	if(s == "0"  ||  s == "0%"  ||  s == "0.0"){
//		cout<<s;
//		return 0;
//	}
	for(int i=s.length()-1;i>=0;i--){
		if(s[i] == '/'  ||  s[i] == '.'){
			ans2 = ans1;
			ans1 = "";
			ans3 = s[i];
		}
		else if(s[i] == '%')
			ans3 = "%";
		else if(s[i] == '0'){
			if(ans1 == "")
				ans1 = '0';
			else if(ans1[0] == '0')
				continue;
			else{
				ans1 += s[i];
			}
		}
		else{
			if(ans1 == ""  &&  ans1[0] == '0')
				ans1 = s[i];
			else
				ans1 += s[i];
		}
	}
	if(ans3 == "."){
		string l=ans2;
		ans2 = "";
		for(int i=l.length()-1;i>0;i--){
			if(l[i] == '0')
				continue
			
		}
	}
	cout<<ans1<<ans3<<ans2;
	return 0;
}
